﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevelopmentPFR.Utilitaire;

namespace DevelopmentPFR.Hypermarche
{
    public partial class Hypermarche : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                ListeCategories.DataSource = BaseDeDonnees.ExecuteSelectStoredProcedure("spHyp_filtreCategorie");
                ListeCategories.DataBind();
            }
            
        }

        protected void Signout_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Redirect("~/Identification.aspx");
        }
    }
}